import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SConsumeYBRetRewardInfo
    
    export  class SConsumeYBRetRewardInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SConsumeYBRetRewardInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.target);
            arg1.writeInt(this.code);
            arg1.writeInt(this.price);
            arg1.writeBool(this.canGet);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.target = arg1.readInt();
            this.code = arg1.readInt();
            this.price = arg1.readInt();
            this.canGet = arg1.readBool();
            return;
        }

        public /* const */_type: int=876;

        public /* var */target: int;

        public /* var */code: int;

        public /* var */price: int;

        public /* var */canGet: Boolean;

        public static /* var */_regist: SConsumeYBRetRewardInfo;
    }

            SConsumeYBRetRewardInfo._regist = new SConsumeYBRetRewardInfo(true);
        